#include <stdio.h>

int main() {
    int a[3][5] = { {1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}, {11, 12, 13, 14, 15} };

    int sum = 0;
    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 5; j++) {
            sum += a[i][j];
        }
    }

    printf("Sum of all elements is %d\n", sum);

    return 0;
}
